package cn.itcast.controller;

import cn.itcast.entity.Result;
import cn.itcast.mobile.MoblieAddressService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Demo class
 *
 * @author gyc
 * @date 2021/10/17
 */
@RestController
@RequestMapping("/address")
public class AddressController {
    @Reference
    private MoblieAddressService addressService;

    @GetMapping("/findAll")
    public Result findAll(){
        return addressService.findAll();
    }
}
